package oneD.fem;

//import inf.text.ArrayFormat;

public class Constraint {
	private boolean[] free_ = new boolean[3];

	public Constraint(boolean u1, boolean u2, boolean u3) {
		this.free_[0] = u1;
		this.free_[1] = u2;
		this.free_[2] = u3;
	}

	public boolean isFree(int c) {
		return this.free_[c];
	}

	public void print() {
		if(this.free_[0]) System.out.print("free\t");
		else System.out.print("fixed\t");
		if(this.free_[1]) System.out.print("free\t");
		else System.out.print("fixed\t");
		if(this.free_[2]) System.out.print("free");
		else System.out.print("fixed");
	}
}
